window.onload = function(){
    var showTime = document.getElementById("showTime");
    var date = new Date();
    var year = date.getFullYear();
    var month = date.getMonth() + 1;
    var day = date.getDate()
    var hour = date.getHours();
    var minute = date.getMinutes();
    var second = date.getSeconds();
    month = month<10?"0"+month:month;
    day = day<10?"0"+day:day;
    hour = hour<10?"0"+hour:hour;
    minute = minute<10?"0"+minute:minute;
    second = second<10?"0"+second:second;
    var t = "更新于："+year+"."+month+"."+day+" "+hour+":"+minute+":"+second;
    showTime.innerHTML = t;
}